package com.ssh.entity;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class ActivitySuperMarket extends BaseEntity{

	private static final long serialVersionUID = 6002548593623858681L;
	private Activity activity;
	private SuperMarket superMarket;
	private Timestamp createDate;
	private int planHaibao;
	private int planDuitou;
	private int planToutao;
	private int planDuanjia;
	private int planChenlie;
	private int haibao;
	private int duitou;
	private int toutao;
	private int duanjia;
	private int chenlie;

	public int getPlanHaibao() {
		return planHaibao;
	}

	public void setPlanHaibao(int planHaibao) {
		this.planHaibao = planHaibao;
	}

	public int getPlanDuitou() {
		return planDuitou;
	}

	public void setPlanDuitou(int planDuitou) {
		this.planDuitou = planDuitou;
	}

	public int getPlanToutao() {
		return planToutao;
	}

	public void setPlanToutao(int planToutao) {
		this.planToutao = planToutao;
	}

	public int getPlanDuanjia() {
		return planDuanjia;
	}

	public void setPlanDuanjia(int planDuanjia) {
		this.planDuanjia = planDuanjia;
	}

	public int getPlanChenlie() {
		return planChenlie;
	}

	public void setPlanChenlie(int planChenlie) {
		this.planChenlie = planChenlie;
	}

	public int getHaibao() {
		return haibao;
	}

	public void setHaibao(int haibao) {
		this.haibao = haibao;
	}

	public int getDuitou() {
		return duitou;
	}

	public void setDuitou(int duitou) {
		this.duitou = duitou;
	}

	public int getToutao() {
		return toutao;
	}

	public void setToutao(int toutao) {
		this.toutao = toutao;
	}

	public int getDuanjia() {
		return duanjia;
	}

	public void setDuanjia(int duanjia) {
		this.duanjia = duanjia;
	}

	public int getChenlie() {
		return chenlie;
	}

	public void setChenlie(int chenlie) {
		this.chenlie = chenlie;
	}

	public ActivitySuperMarket() {
	}

	@ManyToOne(cascade ={CascadeType.REFRESH},fetch = FetchType.LAZY)      
    @JoinColumn(name="activityId") 
	public Activity getActivity() {
		return activity;
	}

	public void setActivity(Activity activity) {
		this.activity = activity;
	}

	@ManyToOne(cascade ={CascadeType.REFRESH},fetch = FetchType.LAZY)             
    @JoinColumn(name="superMarketId")
	public SuperMarket getSuperMarket() {
		return superMarket;
	}

	public void setSuperMarket(SuperMarket superMarket) {
		this.superMarket = superMarket;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

}